package org.springblade.common.tool;

/**
 * @Description:
 * @Author: yangyunjiang
 * @Date: 2022/4/11 11:41
 */
public class MyStringUtil {
	public static boolean isEmpty(Object obj){
		return obj==null||"".equals(obj);
	}

	public static boolean isNotEmpty(Object obj){
		return obj!=null&&!"".equals(obj);
	}

	public static boolean hasStr(String source,String target){
		return source.indexOf(target)!=-1;
	}

	public static boolean notHasStr(String source,String target){
		return source.indexOf(target)==-1;
	}
}
